package com.woniuxy.sddfp.api.bank.fallback;

import com.woniuxy.common.model.dto.bank.BankCardAddDTO;
import com.woniuxy.common.model.dto.bank.BaseResult;
import com.woniuxy.common.model.dto.bank.SignatureDto;
import com.woniuxy.common.model.vo.trade.BorrowSyncRecordVo;
import com.woniuxy.common.result.Result;
import com.woniuxy.sddfp.api.bank.TradeLogApi;
import org.springframework.stereotype.Component;

/**
 * @author yellow Doctor
 * @date 2025-03-28
 * @desc 蜗牛创想：www.woniuxy.com
 */
@Component
public class TradeLogApiFallBack implements TradeLogApi {

    @Override
    public SignatureDto proxyBindCardLog(BankCardAddDTO bankCardAddDTO) {

        SignatureDto signatureDto = new SignatureDto();
        signatureDto.setBankUrl("xxx服务降级url");
        signatureDto.setPlatformNo("xxx服务降级...");
        signatureDto.setReqData("");
        signatureDto.setReqCode("xxx");

        return signatureDto;
    }

    @Override
    public Result<BaseResult> syncBorrowRecord(BorrowSyncRecordVo borrowSyncRecordVo) {
        Result<BaseResult> result = new Result();
        result.setCode(200);
        result.setMessage("服务降级...");
        return result;
    }

}
